package com.ai.aicontact.config;

import org.apache.cxf.transport.servlet.CXFServlet;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.embedded.ServletRegistrationBean;
import org.springframework.boot.context.web.SpringBootServletInitializer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
 

/**
 * @version v 1.0 on 2015/11/4 18:18
 * @auther william.xu
 */
@Configuration
public class ServletConfig extends SpringBootServletInitializer {
 


    @Bean
    public ServletRegistrationBean cxfServlet() {
        return new ServletRegistrationBean(new CXFServlet(), "/services/*");
    }
}
